# cmake -B build -G "MinGW Makefiles"
# cmake --build build
cmake_minimum_required(VERSION 3.24)
set(APP_NAME pathCreate)
project(${APP_NAME})
message(STATUS "[Nnnnut] into ${APP_NAME}")

set(gflags_DIR "D:\\code\\gflags\\lib\\cmake\\gflags")
find_package(gflags REQUIRED)

add_definitions(-DDEBUG)
add_compile_options(-fexec-charset=GBK)

set(ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/..)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}) # 设置可执行文件输出路径

add_executable(${APP_NAME} ${APP_NAME}.cpp)
target_include_directories(${APP_NAME} 
                            PRIVATE ${GFLAGS_INCLUDE_DIR}
                            PRIVATE ${ROOT_PATH})

target_link_libraries(${APP_NAME} ${GFLAGS_LIBRARIES})